cloneCashFlows

Performs a deep clone of the supplied list of cash flows. All entries in the list will be new / cloned cash flow entries. The returned list will be in the same order as the supplied list of cash flows.

Return

new list of cash flows, with new cash flow entries. Both the returned list, and its entries are new clones.

Parameters

cashFlows

The list of cash flows to return. There is no validation on this list.


fun cloneCashFlows(cashFlows: List<ROICashFlowEntry>, toCurr: CurrencyType, toDate: Int? = null): List<ROICashFlowEntry>

Performs a deep clone of the supplied list of cash flows whilst also converting the currency and value(s). All entries in the list will be new / cloned cash flow entries. The returned list will be in the same order as the supplied list of cash flows.

Return

new list of cash flows, with new cash flow entries. Both the returned list, and its entries are new clones.

Parameters

cashFlows

The list of cash flows to return. There is no validation on this list.

toDate

Optional - specify a fixed end date to revalue all cash flows on a constant currency basis (i.e. excluding FX impacts in IRR). Passing null assumes that all cash flows should be revalued as of their own entry's transactional date (i.e. include FX impact in IRR).